package cn.git.javassist.util;

/**
 * @description: 
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-03-15 01:43:42
 */
public class BitStrUtil {

    /**
     * 生成指定长度的字符串
     * @param length
     * @return
     */
    public String addString(int length) {
        String result = "";
        for (int i = 0; i < length; i++) {
            result += (char)(i % 26 + 'a');
        }
        return result;
    }

    /**
     * 生成指定长度的字符串
     * @param length
     * @return
     */
    public String buildString(int length) {
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < length; i++) {
            stringBuffer.append((char)(i % 26 + 'a'));
        }
        return stringBuffer.toString();
    }

}
